import { defineStore } from "pinia";
import { type filterListType, getFilterData } from "@/api/discovery/filter";

export const useDiscoveryFilterStore = defineStore({
    id: "discoveryFilter",
    state: () => {
        return {
            filterList: [] as filterListType,
        };
    },
    actions: {
        // 获取筛选数据
        async getFilterDataAsync() {
            this.filterList = await getFilterData();
        },
    },
});
